package com.usian.account.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.account.mapper.AccountMpper;
import com.usian.account.model.Account;
import com.usian.account.service.AccountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/11 14:11
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMpper,Account>
        implements AccountService {

    /**
     * 编写扣减金额的方法：
     */

    @Override
    @Transactional
    public void updateAccount(Account account){
        this.baseMapper.updateById(account);
    }
}
